<%#
    Auth: Wen
    Version: V1.0
	Data: 2019.8.20
	Function:
%>

<%+header%>
<html>
	<head>
	<meta charset="utf-8">
	<title>Wen</title>
	<script type="text/javascript">
	var XHR1 = new XHR();

	function GetIns()
	{
		XHR1.post('<%=controller%>admin/ACU_Antenna/getIns', {token:'<%=token%>', step: '1'}, function(x){
		    //对返回的数据进行解析，并填入到相应的控件
		    var str = x.responseText;
		    //是否有错误警告
		    if(str.match(/Error/g) == null)
		    {
		        var n = str.split(",");
		        document.getElementById("inertialNavigationAngle").innerHTML = n[2] + " &#176";
		        document.getElementById("pitchAngle").innerHTML = n[3] + " &#176";
		        document.getElementById("rollAngle").innerHTML = n[4] + " &#176";
		        document.getElementById("longitude").innerHTML = n[5] + " &#176";
		        document.getElementById("latitude").innerHTML = n[6] + " &#176";
		        document.getElementById("height").innerHTML = n[7] + " m";
		        document.getElementById("status").innerHTML = n[8];
		        document.getElementById("rollGyroRate").innerHTML = n[9] + " &#176/s";
		        document.getElementById("pitchGyroRate").innerHTML = n[10] + " &#176/s";
		        document.getElementById("azimuthGyroRate").innerHTML = n[11] + " &#176/s";
		        document.getElementById("gnssWeek").innerHTML = n[12];
		        document.getElementById("gnssLockSatNum").innerHTML = n[13];
		        document.getElementById("courseAngle").innerHTML = n[14];
				var y = n[15].split("*");
		        document.getElementById("date").innerHTML = y[0];
		        document.getElementById("warmingGetIns").innerHTML = "";
		    }
		    else
		    {
		        document.getElementById("warmingGetIns").innerHTML = "Title:" + x.responseText;
		    }
		})
	}
	</script>
	</head>
	<body>
		<p style="color:red;" id="warmingGetIns"></p>
		<fieldset class="cbi-section">
		<div class="widget-box">
		    <div class="widget-title">
		        <span class="icon">
		        <i class="icon-align-justify"></i>
		        </span>
		        <h5><%:Antenna Ins%></h5>
		    </div>
		    <div class="widget-content nopadding">
		        <table width="100%" cellspacing="10">
		            <tr><td width="33%"><%:Inertial Navigation Angle%></td><td id="inertialNavigationAngle"></td></tr>
		            <tr><td width="33%"><%:Pitch Angle%></td><td id="pitchAngle"></td></tr>
		            <tr><td width="33%"><%:Roll Angle%></td><td id="rollAngle"></td></tr>
		            <tr><td width="33%"><%:Longitude%></td><td id="longitude"></td></tr>
		            <tr><td width="33%"><%:Latitude%></td><td id="latitude"></td></tr>
		            <tr><td width="33%"><%:Height%></td><td id="height"></td></tr>
		            <tr><td width="33%"><%:Status%></td><td id="status"></td></tr>
		            <tr><td width="33%"><%:Roll Gyro Rate%></td><td id="rollGyroRate"></td></tr>
		            <tr><td width="33%"><%:Pitch Gyro Rate%></td><td id="pitchGyroRate"></td></tr>
		            <tr><td width="33%"><%:Azimuth Gyro Rate%></td><td id="azimuthGyroRate"></td></tr>
		            <tr><td width="33%"><%:GNSS Week%></td><td id="gnssWeek"></td></tr>
		            <tr><td width="33%"><%:GNSS Lock Sat Num%></td><td id="gnssLockSatNum"></td></tr>
					<tr><td width="33%"><%:Course Angle%></td><td id="courseAngle"></td></tr>
					<tr><td width="33%"><%:Date%></td><td id="date"></td></tr> 
		        </table>
		    </div>
		</div>
		<script>
		GetIns();
		</script>
		</fieldset>
	</body>
</html>
<%+footer%>